﻿using Cirrious.MvvmCross.Application;
using Cirrious.MvvmCross.ExtensionMethods;
using Cirrious.MvvmCross.Interfaces.ViewModels;
using Cirrious.MvvmCross.Interfaces.Views;
using Cirrious.MvvmCross.WindowsPhone.Platform;
using Microsoft.Phone.Controls;
using TeaLightV5.Foundation.MvvmCross;
using TeaLightV5.Foundation.Ux.WinPhone.MvvmCross;
using TeaLightV5.Foundation.Ux.WinPhone.MvvmCross.Platform;

namespace Conference.UX.WinPhone
{
    public class Setup 
        : TeaBaseWindowsPhoneSetup
    {
        public Setup(PhoneApplicationFrame rootFrame)
            : base(rootFrame)
        {
        }

        protected override MvxApplication CreateApp()
        {
            var app = new Conference.Core.UX.App();
            return app;
        }

        protected override void AddPluginsLoaders(Cirrious.MvvmCross.Platform.MvxLoaderPluginRegistry loaders)
        {
            loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Sqlite.WindowsPhone.Plugin>();
            base.AddPluginsLoaders(loaders);
        }
    }
}
